<?php

namespace App\Http\Controllers\Admin;

use App\Exceptions\CoustomerException;
use App\Http\Logic\admin\AdminUserLogic;


class AdminUserController extends AlphaController {
    //首页
    public function index(){
        return view('admin/adminuser/index');
    }
    //获取列表信息
    public function getInfo(){
        try{
            $user_logic = new AdminUserLogic();
            $user_list = $user_logic->getUserListLogic();
            $ret = ['code'=>0,'msg'=>'成功','data'=>$user_list];
        }catch (CoustomerException $e){
            $ret = ['code'=>$e->getCode(),'msg'=>$e->getMessage()];
        }
        return $ret;
    }
    //添加
    public function add(){

    }
    //编辑
    public function edit(){

    }
    //保存/添加
    public function save(){

    }
    //删除
    public function del(){

    }
}
